home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2009 August / SAN CD 8-2009 CD-ROM 51.iso / pc / issueMedia / Software / PHDGuiding1.10Mac / PHD.app / Contents / Resources / graph.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-12-19  |  1.3 KB  |  60 lines

  1. #include <wx/minifram.h>
  2.  
  3. #ifndef GRAPHCLASS
  4. #define GRAPHCLASS
  5.  
  6. class GraphLogWindow : public wxMiniFrame {
  7. public:
  8.     GraphLogWindow(wxWindow *parent);
  9.     ~GraphLogWindow(void);
  10.     void AppendData (float dx, float dy, float RA, float Dec);
  11.     void SetState (bool is_active);
  12.     void OnPaint(wxPaintEvent& evt);
  13.     void OnButtonMode(wxCommandEvent& evt);
  14.     void OnButtonLength(wxCommandEvent& evt);
  15.     void OnButtonHide(wxCommandEvent& evt);
  16.  
  17. private:
  18.     wxButton *LengthButton;
  19.     wxButton *ModeButton;
  20.     wxButton *HideButton;
  21. //    wxBitmap *bmp;
  22.     float hdx[500];    // History of dx
  23.     float hdy[500];
  24.     float hra[500];
  25.     float hdec[500];
  26.     int n_items;    // # items in the history
  27.     bool visible;
  28.     int mode;    // 0 = RA/Dec, 1=dx, dy
  29.     int length;
  30.  
  31. /*    float maxdx;    // Max dx
  32.     float maxdy;
  33.     float maxra;
  34.     float maxdec;
  35.     float mindx;    // Min dx
  36.     float mindy;
  37.     float minra;
  38.     float mindec;*/
  39.     DECLARE_EVENT_TABLE()
  40. };
  41.  
  42. class ProfileWindow : public wxMiniFrame {
  43. public:
  44.     ProfileWindow(wxWindow *parent);
  45.     ~ProfileWindow(void);
  46.     void UpdateData(usImage& img, float xpos, float ypos);
  47.     void OnPaint(wxPaintEvent& evt);
  48.     void SetState(bool is_active);
  49.     void OnLClick(wxMouseEvent& evt);    
  50. private:
  51.     int mode; // 0= 2D profile of mid-row, 1=2D of avg_row, 2=2D of avg_col
  52.     bool visible;
  53.     unsigned short *data;
  54.     int horiz_profile[21], vert_profile[21], midrow_profile[21];
  55.     DECLARE_EVENT_TABLE()
  56. };
  57.  
  58.  
  59. #endif
  60.